using System.IO;
using UnityEditor;
using UnityEngine;

public class MyTools : Editor
{
    [MenuItem("Tools/CreateBundle")]
    static void CreateAssetBundle()
    {
        string path = "AB";

        if (!Directory.Exists(path))
        {
            Directory.CreateDirectory(path);
        }

        BuildPipeline.BuildAssetBundles(path, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);

        Debug.Log("Finish");
    }
}
